<html>
    <head>
	    <title>${story.title}</title>
        <meta name="layout" content="main"></meta>
    </head>
    <body>
    	<h2>${story.title}</h2>
    	${story.publishDate}
	    <p>${story.content}</p>
		<br/>
		<jsec:isLoggedIn>
	     <g:link controller="story" action="edit" id="${story.id}">edit</g:link>
	     </jsec:isLoggedIn>
	     
		<g:form action="comment" id="${story.id}">
			<textarea id="comment" name="comment" value=""></textarea>
			<br/>
			<g:submitButton name='submitComment' value='Post Comment'/>			
		</g:form>
    </body>
</html>